//{{AFX_INCLUDES()
#include "vsflexgrid.h"
//}}AFX_INCLUDES
#if !defined(AFX_DLGPROJSETTINGSPROPORTION_H__BC12206D_190C_42D0_95D3_BFCA6FBE484F__INCLUDED_)
#define AFX_DLGPROJSETTINGSPROPORTION_H__BC12206D_190C_42D0_95D3_BFCA6FBE484F__INCLUDED_

#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
// DlgProjSettingsProportion.h : header file
//

/////////////////////////////////////////////////////////////////////////////
// CDlgProjSettingsDensity dialog

class CDlgProjSettingsDensity : public CDialog
{
private:
	CVSFlexGrid*	m_VS[5];
	CString m_strOldVal ;
	CWzdToolTipCtrl m_tip ;
	BOOL	UpdateRecord(int nVs,int nRow);
 	void	CellChangedVs(int nVsID,long Row, long Col) ;
	void	InitCancelInfo(CANCEL_INFO* pNode,int nOpType,LPCTSTR szHint,char* szOldItem,char* szNewItem);
	BOOL	ReadProjSettings();
	BOOL	ReadDefaultSettings();
public:
	BOOL	m_bCancelSel;
 	BOOL	Read();
	void	Clear();
	void	Cancel(CANCEL_INFO* pNode);
 	void	Redo(CANCEL_INFO* pNode);

	CDlgProjSettingsDensity(CWnd* pParent = NULL);   // standard constructor

// Dialog Data
	//{{AFX_DATA(CDlgProjSettingsDensity)
	enum { IDD = IDD_Dlg_Proj_Settings_Density };
	CVSFlexGrid	m_VS1;
	CVSFlexGrid	m_VS2;
	CVSFlexGrid	m_VS3;
	CVSFlexGrid	m_VS4;
	CVSFlexGrid	m_VS5;
	//}}AFX_DATA


// Overrides
	// ClassWizard generated virtual function overrides
	//{{AFX_VIRTUAL(CDlgProjSettingsDensity)
	protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support
	virtual BOOL PreTranslateMessage(MSG* pMsg) ;
	//}}AFX_VIRTUAL

// Implementation
protected:

	// Generated message map functions
	//{{AFX_MSG(CDlgProjSettingsDensity)
	virtual BOOL OnInitDialog();
	afx_msg void OnSize(UINT nType, int cx, int cy);
	afx_msg void OnBeforeEditVs1(long Row, long Col, BOOL FAR* Cancel);
	afx_msg void OnClickVs1();
	afx_msg void OnBeforeEditVs2(long Row, long Col, BOOL FAR* Cancel);
	afx_msg void OnClickVs2();
	afx_msg void OnBeforeEditVs3(long Row, long Col, BOOL FAR* Cancel);
	afx_msg void OnClickVs3();
	afx_msg void OnBeforeEditVs4(long Row, long Col, BOOL FAR* Cancel);
	afx_msg void OnClickVs4();
	afx_msg void OnBeforeEditVs5(long Row, long Col, BOOL FAR* Cancel);
	afx_msg void OnClickVs5();
	afx_msg void OnBnClickedButtonResume();
	afx_msg void OnCellChangedVs1(long Row, long Col);
	afx_msg void OnCellChangedVs2(long Row, long Col);
	afx_msg void OnCellChangedVs3(long Row, long Col);
	afx_msg void OnCellChangedVs4(long Row, long Col);
	afx_msg void OnCellChangedVs5(long Row, long Col);
	afx_msg void OnBeforeSelChangeVs1(long OldRowSel, long OldColSel, long NewRowSel, long NewColSel, BOOL FAR* Cancel);
	afx_msg void OnBeforeSelChangeVs2(long OldRowSel, long OldColSel, long NewRowSel, long NewColSel, BOOL FAR* Cancel);
	afx_msg void OnBeforeSelChangeVs3(long OldRowSel, long OldColSel, long NewRowSel, long NewColSel, BOOL FAR* Cancel);
	afx_msg void OnBeforeSelChangeVs4(long OldRowSel, long OldColSel, long NewRowSel, long NewColSel, BOOL FAR* Cancel);
	afx_msg void OnBeforeSelChangeVs5(long OldRowSel, long OldColSel, long NewRowSel, long NewColSel, BOOL FAR* Cancel);
	afx_msg void OnBnClickedButtonImport();
	afx_msg void OnBnClickedButtonExport();
	DECLARE_EVENTSINK_MAP()
	//}}AFX_MSG
	DECLARE_MESSAGE_MAP()
};

//{{AFX_INSERT_LOCATION}}
// Microsoft Visual C++ will insert additional declarations immediately before the previous line.

#endif // !defined(AFX_DLGPROJSETTINGSPROPORTION_H__BC12206D_190C_42D0_95D3_BFCA6FBE484F__INCLUDED_)
